package org.agony2d.gpu.supportClasses.textures {
	
    internal function getNextPowerOfTwo( number:int ) : int {
		var result:int
		
        if (number > 0 && (number & (number - 1)) == 0) {	
            return number
		}
        else {
            result = 1
            while (result < number) {
				result <<= 1
			}
            return result
        }
    }
}